

//存储jwt
export const setJwt = (data) => {
    let jwt = JSON.stringify(data)
  localStorage.setItem('jwt', jwt)
}


//获取jwt
export const getJwt = () => {
  let jwt = localStorage.getItem('jwt')
  if (jwt) {
    return JSON.parse(jwt)
  } else {
    return null
  }
}